package com.jy.rhin.config;

import lombok.Getter;

@Getter
public enum RhinFaultCode {

    VersionMismatch("VersionMismatch", "SOAP Envelope 元素的无效命名空间被发"),
    MustUnderstand("MustUnderstand", "Header 中一个标记为 mustUnderstand 的元素无法被正确处理。"),
    DataEncodingUnknown("DataEncodingUnknown", "数据编码不被支持"),
    Sender("Sender", "由于消息内容的不正确而造成的无法被服务端处理。"),
    Receiver("Receiver", "由于消息的处理而不是消息的内容造成消息无法被服务端处理。");

    private String code;
    private String desc;

    RhinFaultCode(String code, String desc) {
    this.code = code;
    this.desc = desc;
    }
}
